package patten.xingwei.state;

/**
 * Description：TODO
 * Author：zwenzhi
 * Date：2023/11/6 15:12
 */
public class Client {
    public static void main(String[] args) {

        Character character = new Character(100, 90, 10);
        NormalState normalState = new NormalState(character);
        normalState.handleAttack();
        normalState.handleDamage(10);
        normalState.handleHeal(10);
        InjuredState injuredState = new InjuredState(character);

        injuredState.handleAttack();
        injuredState.handleDamage(10);
        injuredState.handleHeal(10);
        injuredState.handleAttack();

    }
}
